import {Duration} from "mvx-utils";

export function sleep(duration:Duration):Promise<void> {
  return new Promise<void>((resolve => {
    setTimeout(()=> {
      resolve()
    }, duration)
  }))
}
